home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2216 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: easy.in-chemnitz.de!mkmk!floh
  2. From: floh@mkmk.in-chemnitz.de (Andre Weissflog)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: manipulating the stack in C
  5. Message-ID: <AxR-x*pE0@mkmk.in-chemnitz.de>
  6. Date: Sun, 28 Jan 1996 15:33:56 CET
  7. Reply-To: floh@mkmk.in-chemnitz.de
  8. References: <4e8b20$lsq@newshost.lanl.gov> <Sh++x*aE0@mkmk.in-chemnitz.de> <jasonb.822718223@cs.uwa.edu.au>
  9. Distribution: world
  10. Organization: private uucp site
  11. X-Newsreader: Arn V 1.04
  12.  
  13. In article <jasonb.822718223@cs.uwa.edu.au>, Jason S Birch writes:
  14.  
  15. > floh@mkmk.in-chemnitz.de (Andre Weissflog) writes:
  16. > >Since C pushes the last arg first, you will find num_args
  17. >       ^^^
  18. > I haven't got docs with me right now, but I think you'll find that
  19. > this is compiler-dependent - ANSI C, AFAIR, doesn't define the order
  20. > arguments will be put on the stack, or even, indeed, that they *will*
  21.  
  22. Yes, you're right.
  23. The only safe way to call assembly functions from C or vice versa
  24. is to dig in the docs and check the compilers calling conventions.
  25.  
  26. Bye,
  27. -Floh.
  28.  
  29. ====//=== Andre Weissflog <floh@mkmk.in-chemnitz.de> =======
  30. ...// Sep'95: Return Of The Living Death...................
  31. \\// 90% of everything is crap (Sturgeon's Law)...........
  32. =\\===============================================Amiga!=
  33.  
  34.